﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TPA.DataAccess;
using Microsoft.Reporting.WinForms;

namespace TVProgramAnalyst.TimeLine
{
    public partial class frmReportViewer : Form
    {
        public frmReportViewer()
        {
            InitializeComponent();
        }

        private void frmReportViewer_Load(object sender, EventArgs e)
        {
            //this.reportViewer1. .LocalReport. .DataSources.Add(new ReportDataSource("DataSet1", BLLFactory.TimeLineBLL.GetTimelineSegment(DateTime.Parse("11/15/2010"),"北京卫视")));
            tVProgamAnalyticEntities1BindingSource.DataSource=BLLFactory.TimeLineBLL.GetTimelineSegment(DateTime.Parse("11/15/2010"),"北京卫视");
            this.reportViewer1.RefreshReport();
        }
    }
}
